#include <vector>

#include "CSysErrorMsg.h"
#include "CErrorStrings.h"

CSysErrorMsg::CSysErrorMsg(error_id_type const err_id,std::string const& str)
    : error_id(err_id),
      str_aux(str)
{
}

char const* CSysErrorMsg::what() 
{
    std::vector<std::string> vct_error;
    vct_error.push_back(str_aux);

    CErrorStrings* perr_strings(new CErrorStrings);
    perr_strings->GetErrorString(CErrorMsg::ERR_SYS,error_id,vct_error,str_error);
    delete perr_strings;

    return str_error.c_str();
}
